import { RouteLocationRaw } from "vue-router";
import router from "@/router";


function replace(to: RouteLocationRaw) {
  router.replace(Object.assign({}, to));
}

function push(to: RouteLocationRaw) {
  router.push(Object.assign({}, to));
}

export default {
  replace,
  push
}